package com.bee.剑指offer;

public class 打印从1到最大的n位数 {

    public int[] printNumbers(int n) {
        int count = 10;
        for (int i = 1; i < n; i++) {
            count *= 10;
        }
        int[] result = new int[count - 1];
        for (int i = 0; i < count - 1; i++) {
            result[i] = i + 1;
        }
        return result;
    }


    public static void main(String[] args) {

    }
}
